<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>

<!--
	Copyright (c) 1999-2008 by Digital Mars
	All Rights Reserved
	Written by Walter Bright
	www.digitalmars.com
  -->

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" >
<title>std.bitarray - D Programming Language - Digital Mars</title>
<link rel="stylesheet" type="text/css" href="./style.css">
<link rel="icon" type="image/gif" href="./holy.gif" />
</head>

<body>
<div id="heading">
	<a href="http://www.digitalmars.com/"><img src="./dmlogo.gif" width="270" height="53" border="0" alt="www.digitalmars.com" align="left"></a>
	<p align="right">D Programming Language 1.0</p>


	<div id="headingNav">
	<ul>
	<li><a href="http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/StdBitarray" title="Read/write comments and feedback">Comments</a></li>
	<li><a href="http://www.digitalmars.com/d/1.0/index.html" title="D Programming Language" class="dlink">D</a></li>
	<li><a href="http://www.digitalmars.com/advancedsearch.html" title="Search Digital Mars web site">Search</a></li>
	<li><a href="http://www.digitalmars.com/" title="www.digitalmars.com">Home</a></li>
	</ul>
	</div>

	<div id="lastupdate">Last update Wed Oct  1 23:47:51 2008</div>
</div>

<!-- -->

<div id="navigation">
    <div class="navblock">
<form method="get" action="http://www.google.com/search">
<div id="searchbox">
<input id="q" name="q" size="10" value="RTL Search" onFocus='if(this.value == "RTL Search"){this.value="";}'>
<input type="hidden" id="domains" name="domains" value="www.digitalmars.com">
<input type="hidden" id="sitesearch" name="sitesearch" value="www.digitalmars.com/d/1.0/phobos">
<input type="hidden" id="sourceid" name="sourceid" value="google-search">
<input type="submit" id="submit" name="submit" value="Go">
</div>
</form>
<div id="toctop">
    <ul>
	<li><a href="http://www.digitalmars.com/d/1.0/index.html" title="D Programming Language">D ...</a></li>
	<li><a href="http://www.digitalmars.com/d/1.0/lex.html" title="D Language Specification">Language ...</a></li>
	<li><a href="phobos.html" title="D Runtime Library">Phobos ...</a></li>
	<li><a href="http://www.digitalmars.com/d/1.0/comparison.html" title="Language Comparisons">Comparisons ...</a></li>
    </ul>
</div>
</div>
    <div class="navblock">
<ul>
<li><a href="index.html" title="Index of all HTML files">Index</a></li>
</ul>
    <ul>
	<li><a href="object.html" title="root of object hierarchy">object</a></li>
    </ul>
    <h2><a href="phobos.html#std" title="D standard modules">std</a></h2>
    <ul>
	<li><a href="std.base64.html" title="Encode/decode base64 format">std.base64</a></li>
	<li><a href="std.bind.html" title="Function argument binding">std.bind</a></li>
	<li><a href="std.bitarray.html" title="Arrays of bits">std.bitarray</a></li>
	<li><a href="std.boxer.html" title="Box/unbox types">std.boxer</a></li>
	<li><a href="std.compiler.html" title="Information about the D compiler implementation">std.compiler</a></li>
	<li><a href="std.conv.html" title="Conversion of strings to integers">std.conv</a></li>
	<li><a href="std.cover.html" title="D coverage analyzer">std.cover</a></li>
	<li><a href="std.cpuid.html" title="CPU identification">std.cpuid</a></li>
	<li><a href="std.ctype.html" title="Simple character classification">std.ctype</a></li>
	<li><a href="std.date.html" title="Date and time functions">std.date</a></li>
	<li><a href="std.demangle.html" title="Demangle D names">std.demangle</a></li>
	<li><a href="std.file.html" title="Basic file operations">std.file</a></li>
	<li><a href="std.format.html" title="Formatted conversions of values to strings">std.format</a></li>
	<li><a href="std.gc.html" title="Control the garbage collector">std.gc</a></li>
	<li><a href="std.intrinsic.html" title="Compiler built in intrinsic functions">std.intrinsic</a></li>
	<li><a href="std.math.html" title="the usual math functions">std.math</a></li>
	<li><a href="std.md5.html" title="Compute MD5 digests">std.md5</a></li>
	<li><a href="std.metastrings.html" title="Metaprogramming with strings">std.metastrings</a></li>
	<li><a href="std.mmfile.html" title="Memory mapped files">std.mmfile</a></li>
	<li><a href="std.openrj.html" title="Basic database">std.openrj</a></li>
	<li><a href="std.outbuffer.html" title="Assemble data into an array of bytes">std.outbuffer</a></li>
	<li><a href="std.outofmemory.html" title="Out of memory exception">std.outofmemory</a></li>
	<li><a href="std.path.html" title="Manipulate file names, path names, etc.">std.path</a></li>
	<li><a href="std.process.html" title="Create/destroy threads">std.process</a></li>
	<li><a href="std.random.html" title="Random number generation">std.random</a></li>
	<li><a href="std.regexp.html" title="regular expressions">std.regexp</a></li>
	<li><a href="std.signals.html" title="Signals">std.signals</a></li>
	<li><a href="std.socket.html" title="Sockets">std.socket</a></li>
	<li><a href="std.socketstream.html" title="Stream for a blocking, connected Socket">std.socketstream</a></li>
	<li><a href="std.stdint.html" title="Integral types for various purposes">std.stdint</a></li>
	<li><a href="std.stdio.html" title="Standard I/O">std.stdio</a></li>
	<li><a href="std.cstream.html" title="Stream I/O">std.cstream</a></li>
	<li><a href="std.stream.html" title="Stream I/O">std.stream</a></li>
	<li><a href="std.string.html" title="Basic string operations">std.string</a></li>
	<li><a href="std.system.html" title="Inquire about the CPU, operating system">std.system</a></li>
	<li><a href="std.thread.html" title="Thread operations">std.thread</a></li>
	<li><a href="std.traits.html" title="Type traits">std.traits</a></li>
	<li><a href="std.typetuple.html" title="Type tuples">std.typetuple</a></li>
	<li><a href="std.uni.html" title="Unicode classification">std.uni</a></li>
	<li><a href="std.uri.html" title="Encode and decode Uniform Resource Identifiers (URIs)">std.uri</a></li>
	<li><a href="std.utf.html" title="Encode and decode utf character encodings">std.utf</a></li>
	<li><a href="std.zip.html" title="Read/write zip archives">std.zip</a></li>
	<li><a href="std.zlib.html" title="Compression / Decompression of data">std.zlib</a></li>
	<li><a href="std.c.fenv.html" title="Floating point environment">std.c.fenv</a></li>
	<li><a href="std.c.locale.html" title="Locale">std.c.locale</a></li>
	<li><a href="std.c.math.html" title="Math">std.c.math</a></li>
	<li><a href="std.c.process.html" title="Process">std.c.process</a></li>
	<li><a href="std.c.stdarg.html" title="Variadic arguments">std.c.stdarg</a></li>
	<li><a href="std.c.stddef.html" title="Standard definitions">std.c.stddef</a></li>
	<li><a href="std.c.stdio.html" title="Standard I/O">std.c.stdio</a></li>
	<li><a href="std.c.stdlib.html" title="Standard library">std.c.stdlib</a></li>
	<li><a href="std.c.string.html" title="Strings">std.c.string</a></li>
	<li><a href="std.c.time.html" title="Time">std.c.time</a></li>
	<li><a href="std.c.wcharh.html" title="Wide characters">std.c.wcharh</a></li>
	<li><a href="std.windows.charset.html" title="Conversion to/from Windows character sets">std.windows.charset</a></li>
	<li><a href="phobos.html#std_windows" title="Modules specific to Windows">std.windows</a></li>
	<li><a href="phobos.html#std_linux" title="Modules specific to Windows">std.linux</a></li>
	<li><a href="phobos.html#std_c_windows" title="C Windows API">std.c.windows</a></li>
	<li><a href="phobos.html#std_c_linux" title="C Linux API">std.c.linux</a></li>
    </ul>
</div>
</div>
<div id="content">
    <h1><a href="./htmlsrc/std.bitarray.html">std.bitarray</a></h1>
    
<dl>
<dt><big>struct <a href="./htmlsrc/std.bitarray.html#L16" title="At line 16.">BitArray</a>;</big></dt>
<dd>
An array of bits.
 <br><br>
<dl>
<dt><big>size_t <a href="./htmlsrc/std.bitarray.html#L18" title="At line 18.">len</a>;</big></dt>
<dd></dd>
<dt><big>uint* <a href="./htmlsrc/std.bitarray.html#L19" title="At line 19.">ptr</a>;</big></dt>
<dd></dd>
<dt><big>size_t <a href="./htmlsrc/std.bitarray.html#L21" title="At line 21.">dim</a>();</big></dt>
<dd></dd>
<dt><big>size_t <a href="./htmlsrc/std.bitarray.html#L26" title="At line 26.">length</a>();</big></dt>
<dd></dd>
<dt><big>void <a href="./htmlsrc/std.bitarray.html#L31" title="At line 31.">length</a>(size_t <i>newlen</i>);</big></dt>
<dd></dd>
<dt><big>bool <a href="./htmlsrc/std.bitarray.html#L57" title="At line 57.">opIndex</a>(size_t <i>i</i>);</big></dt>
<dt><big>bool <a href="./htmlsrc/std.bitarray.html#L68" title="At line 68.">opIndexAssign</a>(bool <i>b</i>, size_t <i>i</i>);</big></dt>
<dd>
Support for [<i>index</i>] operation for BitArray.
     <br><br></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L85" title="At line 85.">dup</a>();</big></dt>
<dd>
Support for array.dup property for BitArray.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L95" title="At line 95.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>int <a href="./htmlsrc/std.bitarray.html#L116" title="At line 116.">opApply</a>(int delegate(inout bool) <i>dg</i>);</big></dt>
<dt><big>int <a href="./htmlsrc/std.bitarray.html#L131" title="At line 131.">opApply</a>(int delegate(inout size_t, inout bool) <i>dg</i>);</big></dt>
<dd>
Support for foreach loops for BitArray.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L145" title="At line 145.">unittest</a>;</big></dt>

<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L181" title="At line 181.">reverse</a>();</big></dt>
<dd>
Support for array.reverse property for BitArray.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L205" title="At line 205.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L226" title="At line 226.">sort</a>();</big></dt>
<dd>
Support for array.sort property for BitArray.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L271" title="At line 271.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>int <a href="./htmlsrc/std.bitarray.html#L289" title="At line 289.">opEquals</a>(BitArray <i>a2</i>);</big></dt>
<dd>
Support for operators == and != for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L311" title="At line 311.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>int <a href="./htmlsrc/std.bitarray.html#L337" title="At line 337.">opCmp</a>(BitArray <i>a2</i>);</big></dt>
<dd>
Implement comparison operators.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L364" title="At line 364.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>void <a href="./htmlsrc/std.bitarray.html#L395" title="At line 395.">init</a>(bool[] <i>ba</i>);</big></dt>
<dd>
Set BitArray to contents of ba[]
     <br><br></dd>
<dt><big>void <a href="./htmlsrc/std.bitarray.html#L411" title="At line 411.">init</a>(void[] <i>v</i>, size_t <i>numbits</i>);</big></dt>
<dd>
Map BitArray onto v[], with numbits being the number of bits
 in the array. Does not copy the data.<br><br>
This is the inverse of opCast.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L423" title="At line 423.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>void[] <a href="./htmlsrc/std.bitarray.html#L451" title="At line 451.">opCast</a>();</big></dt>
<dd>
Convert to void[].
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L456" title="At line 456.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L471" title="At line 471.">opCom</a>();</big></dt>
<dd>
Support for unary operator ~ for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L485" title="At line 485.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L505" title="At line 505.">opAnd</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for binary operator &amp; for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L522" title="At line 522.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L545" title="At line 545.">opOr</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for binary operator | for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L562" title="At line 562.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L585" title="At line 585.">opXor</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for binary operator ^ for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L602" title="At line 602.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L627" title="At line 627.">opSub</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for binary operator - for bit arrays.<br><br>
<i>a - b</i> for BitArrays means the same thing as <i>a &amp; ~b</i>.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L644" title="At line 644.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L667" title="At line 667.">opAndAssign</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for operator &amp;= bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L681" title="At line 681.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L703" title="At line 703.">opOrAssign</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for operator |= for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L717" title="At line 717.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L738" title="At line 738.">opXorAssign</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for operator ^= for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L752" title="At line 752.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L775" title="At line 775.">opSubAssign</a>(BitArray <i>e2</i>);</big></dt>
<dd>
Support for operator -= for bit arrays.<br><br>
<i>a -= b</i> for BitArrays means the same thing as <i>a &amp;= ~b</i>.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L789" title="At line 789.">unittest</a>;</big></dt>
<dd></dd>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L811" title="At line 811.">opCatAssign</a>(bool <i>b</i>);</big></dt>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L842" title="At line 842.">opCatAssign</a>(BitArray <i>b</i>);</big></dt>
<dd>
Support for operator ~= for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L818" title="At line 818.">unittest</a>;</big></dt>
<dd></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L851" title="At line 851.">unittest</a>;</big></dt>

<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L876" title="At line 876.">opCat</a>(bool <i>b</i>);</big></dt>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L887" title="At line 887.">opCat_r</a>(bool <i>b</i>);</big></dt>
<dt><big>BitArray <a href="./htmlsrc/std.bitarray.html#L899" title="At line 899.">opCat</a>(BitArray <i>b</i>);</big></dt>
<dd>
Support for binary operator ~ for bit arrays.
     <br><br></dd>
<dt><big><a href="./htmlsrc/std.bitarray.html#L908" title="At line 908.">unittest</a>;</big></dt>
</dl></dd></dl>
    <br><br>
<br><br>
<!-- Google ad -->
<script type="text/javascript"><!--
/**/google_ad_client = "pub-5628673096434613";
/**/google_ad_width = 728;
/**/google_ad_height = 90;
/**/google_ad_format = "728x90_as";
/**/google_ad_channel ="6203743411";
/**/google_page_url = document.location;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


<div id="copyright">
Copyright &copy; 1999-2008 by Digital Mars, All Rights Reserved |
Page generated by <a href="http://code.google.com/p/dil">dil</a> on Wed Oct  1 23:47:51 2008
</div>

</body>
</html>